package cn.txzhang.bookstores.modular.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("book")
public class BookEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String bookName;
    private String author;
    private String press;
    private String content;
    private String type;
    private LocalDate publicationDate;
    private LocalDateTime createTime;
    @Version
    private Integer version = 0;

}
